import { Module } from '@nestjs/common'
import { AnalysisController } from './analysis.controller'
import { AnalysisService } from './analysis.service'
import { MongooseModule } from '@nestjs/mongoose'
import { ProduSchema } from 'src/Produce/Schema/produce.schema'
import { OrderSchema } from 'src/order/order.schema'
import { ShopSchema } from 'src/merchant/shop/shop.shcema'
import { BrandSchema } from 'src/merchant/brand/brandschema'
import { AreaSchema } from 'src/merchant/area/area.schema'

@Module({
  imports: [
    MongooseModule.forFeature([
      { name: 'product', schema: ProduSchema },
      { name: 'order', schema: OrderSchema },
      { name: 'shop', schema: ShopSchema },
      { name: 'brand', schema: BrandSchema },
      { name: 'area', schema: AreaSchema },
    ]),
  ],
  controllers: [AnalysisController],
  providers: [AnalysisService],
  exports: [],
})
export class AnalysisModule {}
